package com.taotao.wifepojie.controller;

import com.taotao.wifepojie.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author wangjin
 * @title: UserController
 * @projectName wife-pojie
 * @description: TODO
 * @date 2022/4/18 0018 10:12
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("/user")
     public String user(){
         userService.inserUser("你好",32);
         return "index";

     }

}
